package com.guyaning.testmvp;

import android.app.Application;

import com.blankj.utilcode.util.Utils;
import com.guyaning.deyson_core.core.app.Deyson;
import com.guyaning.deyson_core.core.net.interceptors.DebugInterceptor;
import com.guyaning.deyson_ec.ec.database.DatabaseManager;
import com.joanzapata.iconify.Iconify;
import com.joanzapata.iconify.fonts.FontAwesomeModule;
import com.joanzapata.iconify.fonts.IoniconsModule;

/**
 * Created by Administrator on 2018/3/22.
 */

public class ExampleApp extends Application {

    @Override
    public void onCreate() {
        super.onCreate();

        Deyson.init(this)
                .withApiHost("http://192.168.16.169:8080/phpbin/api/")
                .withInterceptor(new DebugInterceptor("test", R.raw.test))
                .withWeChatAppId("")
                .withWeChatAPPSecret("")
                .configure();

        Iconify
                .with(new FontAwesomeModule())
                .with(new IoniconsModule());//自定义字体图标

        Utils.init(Deyson.getApplicationContext());

        DatabaseManager.getInstance().init(this);

    }
}
